#ifndef _BOX_H_
#define _BOX_H_

#include "Enemy.h"
#include "Convert.h"

#define bStatus BoxStatus
#define STATUS_NEXT (bStatus)(currentStatus_ + 1)
#define STATUS_BACK (bStatus)(currentStatus_ - 1)
#define	SEC_MOVE 10
#define SEC_OPEN_CLOSE 60


class CBox : public CEnemy
{
private:
	bStatus currentStatus_;
	bool	isClosed_;
	bool	isOpen_;
	int		count_;
public:
	CBox();
	CBox(VECTOR3 position);
	~CBox();

	void	AI(VECTOR3 playerPosition);
	int		HealthyState() { return 1; };
	void	Update(DWORD deltaTime);
	void	Render();

	void	setStatus(bStatus status);
	bool	moveStatus(bStatus status);
	bool	changeStatus(bStatus status);
};
#endif
